let mongoose = require('mongoose')
 
mongoose.set('strictQuery', false)
mongoose.connect('mongodb://root:whq416...@152.136.32.181:29000/wanghq?authSource=admin', (err) => {
    mongoose.set('strictQuery', true);
    if (!err) {
        console.log('数据库连接成功');
    }
})
module.exports = mongoose